package com.example.myapplicationndk.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.myapplicationndk.R;

import java.util.ArrayList;
import java.util.List;

import androidx.recyclerview.widget.DiffUtil;

public class RecycleviewAdapter extends BaseQuickAdapter<String, BaseViewHolder> {



    private Context context;
    private List<String> list = new ArrayList<>();

    public RecycleviewAdapter(Context context, List<String> list) {
        super(R.layout.item_list, list);
        this.context = context;
        this.list = list;
    }

    @Override
    protected void convert(BaseViewHolder holder, String s) {
        holder.setText(R.id.name, s);
    }
}
